﻿using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SWGeneracionE.Models
{
    public class Bus
    {
        [Key()]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int idBus { get; set; }
        [Required]
        public int NoBus { get; set; }
        [Required]
        public string Descripcion { get; set; }
        [Required]
        public short Estado { get; set; }
        [Required]
        public int Capacidad { get; set; }

        public virtual ICollection<BusParticipante> BusParticipante { get; set; }
    }
}